package org.feng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.feng.entity.Menu;
import org.feng.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> treeList(User user);

    List<Menu> getButtons(Long roleId);

}
